﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace darkeggs
{
    class eggs
    {
        Vector2 position;
        int radius;
        Texture2D TEXTURE;
        int health;
        bool dead = false;

        public eggs(Texture2D texAug,Vector2 posAug)
        {
            health = 100;
            TEXTURE = texAug;
            position = posAug;
            radius = 100;
        }

        public void draw(SpriteBatch sb)
        {
            sb.Draw(TEXTURE, position, Color.White);
        }

        public void update()
        { }

        public void setHit(int damage)
        {
            health -= damage;
            if (health <= 0)
                dead = true;
        }

        public bool isDead()
        {
            return dead;
        }

        public int getHealth()
        {
            return health;
        }

        public Vector2 getPos()
        {
            return position;
        }

        public int getRadius()
        {
            return radius;
        }

    }
}
